package com.tianshuo.listener.annotation;

import com.tianshuo.model.User;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * @ClassName : SmsService
 * @Description : ss
 * @Author : tianshuo
 * @Date: 2020-09-23 18:09
 */
@Component
public class SmsService {


    @EventListener
    public void send(User user) {
        System.out.println("SmsService "+user);
    }
}

